package com.chx.dubbo;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @author 夏天
 * @date 2018/4/28 下午12:40
 * @Description:
 */
@Service
public class HelloWorldConsumerService implements HelloWorldDubboService{

    @Reference(version = "1.0.0")
    HelloWorldDubboService helloWorldDubboService;

    public String sayHello(String name) {
        return helloWorldDubboService.sayHello(name);
    }
}
